<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>表格标签</title>
</head>
<body>
<table>
  <tr>
    <td>|1-1|</td> <td>|1-2|</td> <td>|1-3|</td> <td>|1-4|</td>
  </tr>
  <tr>
    <td>|2-1|</td> <td>|2-2|</td> <td>|2-3|</td>
  </tr>
  <tr>
    <td>|3-1|</td>
  </tr>
</table>
<br>
<!--tr和th不同的是th会加粗并且居中-->
<table align="center" border="1" cellpadding="0" cellspacing="0" width="500">
  <tr><th>姓名</th> <th>性别</th> <th>年龄</th></tr>
  <tr><td>小智</td> <td>男</td> <td>18</td></tr>
  <tr><td>小霞</td> <td>女</td> <td>18</td></tr>
  <tr><td>小瑶</td> <td>女</td> <td>18</td></tr>
  <tr><td>小光</td> <td>女</td> <td>18</td></tr>
</table>
</body>
</html>